package biz

import (
	"context"

	"github.com/go-kratos/kratos/v2/log"
)

// {{cookiecutter.project_name | capitalize }} 业务数据模型
type {{cookiecutter.project_name | capitalize }} struct {
	Name string
}

// {{cookiecutter.project_name | capitalize }}Repo 数据模型接口
type I{{cookiecutter.project_name | capitalize }}Repo interface {
	Index(context.Context)
}

// {{cookiecutter.project_name | capitalize }}Biz 业务结构体
type {{cookiecutter.project_name | capitalize }}Biz struct {
	repo I{{cookiecutter.project_name | capitalize }}Repo
	log  *log.Helper
}

func New{{cookiecutter.project_name | capitalize }}Biz(repo I{{cookiecutter.project_name | capitalize }}Repo, logger log.Logger) *{{cookiecutter.project_name | capitalize }}Biz {
	return &{{cookiecutter.project_name | capitalize }}Biz{repo: repo, log: log.NewHelper(logger)}
}
